﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Globalization;
using System.Linq;
using System.Resources;
using System.Threading;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Xml.Linq;

namespace Ryder_US_Website.Presentation.Guest
{
    public partial class LienHe : System.Web.UI.Page
    {
        ResourceManager rm;
        CultureInfo ci;
        protected void Page_Load(object sender, EventArgs e)
        {
            if (Session["Location"] == null)
            {
                Session["Location"] = "vi-VN";
            }
            Thread.CurrentThread.CurrentCulture = new CultureInfo(Session["Location"].ToString());
                rm = new ResourceManager("Resources.SitMap", System.Reflection.Assembly.Load("App_GlobalResources"));
                ci = Thread.CurrentThread.CurrentCulture;
                LoadString(ci);
                Session["Lang"] = Session["Location"].ToString().Substring(0, 2);
            
        }

        public void LoadString(CultureInfo ci)
        {
            lbContactCus.Text = rm.GetString("ContactCus", ci);
            lbDiaChi.Text = rm.GetString("Address", ci);
            lbSoDienThoai.Text = lbSoDienThoai1.Text = lbSoDienThoai2.Text = rm.GetString("Phone", ci);
            lbLienHe.Text = rm.GetString("Contact", ci);
            lbContactTech.Text = rm.GetString("ContactTech", ci);
            lbDiaChi1.Text = rm.GetString("Addr", ci);
        }
    }
}
